﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScreenUp
{
    public partial class PrivScreenGrabs : Form
    {
        public PrivScreenGrabs()
        {
            InitializeComponent();
            foreach (string i in Form1.df.ScreenGrabs)
            {
                listBox1.Items.Add(i);
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            Form1.df.ScreenGrabs.Clear();
            Program.SerializeDataFile(Form1.df);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Clipboard.SetText(((string)listBox1.SelectedItem).Split('[')[0]);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
